package com.dmatek.uwb.demo;

import com.dmatek.uwb.local.xml.middleware.LocalConfigMiddle;
import com.dmatek.uwb.packet.ianalysis.callback.ENodeReportCallBack;
import com.dmatek.uwb.packet.ianalysis.callback.TagReportCallBack;
/***
 * 测试类
 * @author zhangfu
 * @data 2019年6月22日 下午3:03:32
 * @Description
 */
public class Application {
	public static void main(String[] args) throws Exception {
		String xmlPath = "C:\\Users\\Administrator\\Desktop\\Config.xml";
		TagReportCallBack tagReportCallBack = new TagReportCallBack();
		ENodeReportCallBack enodeReportCallBack = new ENodeReportCallBack();
		LocalConfigMiddle localConfigMiddle = new LocalConfigMiddle(xmlPath, tagReportCallBack, enodeReportCallBack);
		localConfigMiddle.start(null, 0);
		//TagInfor tagInfor = new TagInfor();
		//tagInfor.geteNodeBDistances().put("A104", new ENodeBDistance("A104", 307, (byte)0));
		//tagInfor.geteNodeBDistances().put("A105", new ENodeBDistance("A105", 268, (byte)1));
		//AssistLocation assistLocal = localConfigMiddle.getSingleLocalAlgorithm().calculatePosition(tagInfor);
		//System.out.println("实际坐标：" + assistLocal.getPlace().getX() + " , " + assistLocal.getPlace().getY());
	}
}
